export default function def (obj, key, val, enumerable) {
  Object.defineProperty(obj, key, {
    value: val,
    enumerable, // 是否可枚举
    writable: true,
    configurable: true
  })
}
